package com.wk.springboot.controller;
import com.wk.springboot.bean.UserInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/user")
public class UserInfoController {


    protected Logger logger = LoggerFactory.getLogger(getClass());

    @RequestMapping(value = "/login",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
    public String saveUserInfoInSession(UserInfo userInfo , HttpSession session){

        logger.info("userName = {}",userInfo.getUserName());
        logger.info("passWord = {}",userInfo.getPassWord());
        String str = "";

        return "/hello";
    }

}
